package controller.utility;

public class AverageCounter {
	private double average;
	private int counter;
	
	public AverageCounter() {
		
	}

	public double getAverage() {
		return average;
	}
	
	public void add(double value) {
		average = (average*counter + value)/(++counter);
	}

	public void setAverage(double average) {
		this.average = average;
	}
	
	public int getCounter() {
		return counter;
	}
}
